<template>
  <div>
        <p>计数器：{{count}}，{{getCount}}</p>
        <el-button type="primary" @click="handleIncrement">++</el-button>
        <el-button type="primary">--</el-button>
  </div>
</template>

<script>
import {mapState,mapGetters,mapMutations} from 'vuex';
export default {
    computed:{
        message(){
        },
        ...mapState(['count']),
        ...mapGetters(['getCount'])
    },
    methods:{
        ...mapMutations(['increment']),
        handleIncrement(){
            this.increment(10);
        }
    }
}
</script>

<style>

</style>